package com.lagou.goods;


import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.lagou.goods.Mapper")
@EnableDiscoveryClient //也是将当前项目表示为注册中心的客户端，向注册中心进行注册,可以在所有的服务注册中心环境下使用
public class GoodsApplication9201 {
    public static void main(String[] args) {
        SpringApplication.run(GoodsApplication9201.class);
    }

    /**
     * 分⻚插件
     */
//    @Bean
//    public PaginationInterceptor paginationInterceptor() {
//        return new PaginationInterceptor();
//    }
}
